<?php
use oxide\plugin\PluginAbstract;
use oxide\http\Context;

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

class MobileFriendlyPlugin extends PluginAbstract
{
	
	public function onInit(Context $context) 
	{
		$this->register('AdminContentPostForm');
	}
	
	public function onAdminContentPostForm($event, $sender, $args = null)
	{
		oxide\util\Loader::loadHelper('_html');

//		echo '<link type="text/css" rel="stylesheet" href="/admin/resource/layout.css" />';
//		echo '<link type="text/css" rel="stylesheet" href="/admin/resource/style.css" />';
//		echo '<link rel="stylesheet" media="only screen and (-webkit-min-device-pixel-ratio: 2)" type="text/css" href="/rs/mobile/narrow.css" />';
//		echo '<link rel="stylesheet" media="screen and (max-width: 500px)" href="/rs/mobile/narrow.css" />';
//		echo '<link rel="stylesheet" media="screen and (min-width: 701px) and (max-width: 900px)" href="/rs/mobile/medium.css" />';
		_html::link('/rs/mobile/narrow.css');
		
	}
}

?>
